{include file="public/header" /}
<style type="text/css">
.feed-element .content{
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
</style>
<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="ibox float-e-margins">
            <div class="row">

                <div class="col-sm-4">
                    <div class="ibox">
                        <div class="ibox-content">
                            <h5>待处理</h5>
                            <table class="table table-stripped small m-t-md">
                                <tbody>
                                {foreach $pending_list as $v}
                                <tr>
                                    <td class="no-borders"><i class="fa fa-circle text-navy"></i></td>
                                    <td class="no-borders">
                                        <a  onclick="add('{$v.url}')">{$v.name} <b> {$v.count} </b> 个</a>
                                    </td>
                                </tr>
                                {/foreach}

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>


                <div class="col-sm-4">
                    <div class="ibox">
                        <div class="ibox-content">
                            <h5>新增内容</h5>
                            <table class="table table-stripped small m-t-md">
                                <tbody>
                                <tr>
                                    <td class="no-borders"><i class="fa fa-circle text-navy"></i></td>
                                    <td class="no-borders">
                                        今日内容 <b> {$data.content.today} </b> 个
                                    </td>
                                </tr>
                                <tr>
                                    <td class="no-borders"><i class="fa fa-circle text-navy"></i></td>
                                    <td>
                                        本周内容 <b> {$data.content.week} </b>个
                                    </td>
                                </tr>
                                <tr>
                                    <td class="no-borders"><i class="fa fa-circle text-navy"></i></td>
                                    <td>
                                        本月内容 <b> {$data.content.month} </b> 个
                                    </td>
                                </tr>
                                <tr>
                                    <td class="no-borders"><i class="fa fa-circle text-navy"></i></td>
                                    <td>
                                        总共内容 <b> {$data.content.all} </b> 个
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

                <div class="col-sm-4">
                    <div class="ibox">
                        <div class="ibox-content">
                            <h5>新增评论</h5>
                            <table class="table table-stripped small m-t-md">
                                <tbody>
                                    <tr>
                                        <td class="no-borders"><i class="fa fa-circle text-navy"></i></td>
                                        <td class="no-borders">
                                            今日评论 <b> {$data.comment.today} </b> 条
                                        </td>
                                    </tr>
                                    <tr>
                                        <td><i class="fa fa-circle text-navy"></i></td>
                                        <td>
                                            本周评论 <b> {$data.comment.week} </b> 条
                                        </td>
                                    </tr>
                                    <tr>
                                        <td><i class="fa fa-circle text-navy"></i></td>
                                        <td>
                                            本月评论 <b> {$data.comment.month} </b> 条
                                        </td>
                                    </tr>
                                    <tr>
                                        <td><i class="fa fa-circle text-navy"></i></td>
                                        <td>
                                            总共评论 <b> {$data.comment.all} </b> 条
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

                <div class="col-sm-4">
                    <div class="ibox">
                        <div class="ibox-content">
                            <h5>新增会员</h5>
                            <table class="table table-stripped small m-t-md">
                                <tbody>
                                <tr>
                                    <td><i class="fa fa-circle text-navy"></i></td>
                                    <td class="no-borders">
                                        今日会员 <b> {$data.member.today} </b> 人
                                    </td>
                                </tr>
                                <tr>
                                    <td><i class="fa fa-circle text-navy"></i></td>
                                    <td>
                                        本周会员 <b> {$data.member.week} </b> 人
                                    </td>
                                </tr>
                                <tr>
                                    <td><i class="fa fa-circle text-navy"></i></td>
                                    <td>
                                        本月会员 <b> {$data.member.month} </b> 人
                                    </td>
                                </tr>
                                <tr>
                                    <td><i class="fa fa-circle text-navy"></i></td>
                                    <td>
                                        总共会员 <b> {$data.member.all} </b> 人
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

                <div class="col-sm-4">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>最新评论</h5>
                            <div class="ibox-tools">
                                <a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                <a class="close-link"><i class="fa fa-times"></i></a>
                            </div>
                        </div>
                        <div class="ibox-content" style="display: block;">
                            <div class="feed-activity-list">
                                {volist name="comment" id="vo"}
                                <div class="feed-element">
                                    <div>
                                        <strong>{$vo.nickname|default="--"}</strong>
                                    </div>
                                    <div class="content" title="评论：{$vo.content}">评论：{$vo.content}</div>
                                    <small class="text-muted">{$vo.create_time|date="Y-m-d H:i:s"}</small>
                                </div>
                                {/volist}
                            </div>
                        </div>
                    </div>
                </div>

                <div class="col-sm-4">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>关于我们</h5>
                            <div class="ibox-tools">
                                <a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                <a class="close-link"><i class="fa fa-times"></i></a>
                            </div>
                        </div>
                        <div class="ibox-content">
                            <table class="table table-hover no-margins">
                                <tbody>
                                <tr>
                                    <td style="border-top: 0px;">PHP版本：<span>{:phpversion()}</span></td>
                                    <td style="border-top: 0px;">操作系统：<span>{:PHP_OS}</span></td>
                                </tr>
                                <tr>
                                    <td>上传限制：<span>{:ini_get('upload_max_filesize')}</span></td>
                                    <td>POST限制：<span>{:ini_get('post_max_size')}</span></td>
                                </tr>
                                <tr>
                                    <td>更新版本：<span>2020/05/15</span></td>
                                    <td>程序版本：<span>1.0</span></td>
                                </tr>
                                <tr>
                                    <td>技术支持：<span><a href="http://www.duoduoxia.cn/" target="_blank">多多侠</a></span></td>
                                    <td>技术 Q Q：<span>xxx</span></td>
                                </tr>

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{include file="public/footer" /}
    <script type="text/javascript">
        function add(url){
            layer.open({
                type: 2,
                title: '会员管理',
                shadeClose: false,
                shade: 0.2,
                area: ['100%', '95%'],
                skin:'shangchuantup',
                // shift:-1,
                content: url,
            });
        }
        function del(id) {
            swal_del(id, "{:url('del')}", {title:'该会员'});
        }
    </script>
